<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="pojo.Tcm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>中药信息编辑页面</title>
</head>
<body>
<% 
		Tcm tcm=(Tcm)request.getAttribute("curTcm");
%>
	<form action="/TcmSystem/TcmServlet?action=editProc&id=<%=tcm.getId() %>" method="post" >
		<table align="center">
			<tr>
				<td>编号</td>
				<td><input type="text" name="number" value="<%=tcm.getNumber() %>"></td>
			</tr>
			<tr>
				<td>中药名</td>
				<td><input type="text" name="name" value="<%=tcm.getName()   %>"> </td>
			</tr>
			<tr>
				<td>别名</td>
				<td><input type="text" name="alias" value="<%=tcm.getAlias()    %>"> </td>
			</tr>
			<tr>
				<td>归属类型</td>
				<td><input type="text" name="type" value="<%=tcm.getType()    %>"> </td>
			</tr>
			<tr>
				<td>本经原文</td>
				<td><input type="text" name="bjyw" value="<%=tcm.getBjyw()  %>"></td>
			</tr>
			<tr>
				<td>主治</td>
				<td><input type="text" name="zhuzhi" value="<%=tcm.getZhuzhi()  %>"></td>
			</tr>
			<tr>
				<td>性味</td>
				<td><input type="text" name="xingwei" value="<%=tcm.getXingwei()  %>"></td>
			</tr>
			<tr>
				<td>产地</td>
				<td><input type="text" name="chandi" value="<%=tcm.getChandi()  %>"></td>
			</tr>
			<tr>
				<td>用量</td>
				<td><input type="text" name="dosage" value="<%=tcm.getDosage()  %>"></td>
			</tr>
			<tr>
				<td>禁忌</td>
				<td><input type="text" name="taboo" value="<%=tcm.getTaboo()  %>"></td>
			</tr>
			<tr>
				<td>炮制方法</td>
				<td><input type="text" name="processing" value="<%=tcm.getProcessing()  %>"></td>
			</tr>
			<tr>
				<td>其他</td>
				<td><input type="text" name="note" value="<%=tcm.getNote()  %>"></td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="保存"/>&nbsp;
					<input type="reset" value="重置"/>
				</td>
			</tr>
		</table>
	</form>

</body>
</html>